package cn.tedu.ximart.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumAddNewDTO implements Serializable {

  @ApiModelProperty(value = "相册数据名称",required = true)
  @NotNull
  private String name;

  @ApiModelProperty(value = "相册数据详情",required = true)
  private String description;

  @ApiModelProperty(value = "自定义排序序号",required = true)
  @NotNull(message = "请提交自定义排序序号")
  @Range(max = 99999,message = "自定义排序序号必须在0-99999之间的数字")
  private Integer sort;

}